<?php

namespace App\Members;

class MemberLevel
{
    public $monthLevelScope = [
        "A" => [],
        "B" => [],
        "C" => [],
        "D" => [],
    ];

    public $allLevelScope = [
        "diamond1" => [],
        "diamond2" => [],
        "diamond3" => [],
        "gold_v" => [],
        "silver_v" => [],
        "blue_v" => []
    ];

    public function __construct()
    {
        $this->initMonthLevel();
        $this->initAllLevel();
    }

    private function initMonthLevel()
    {
        foreach ($this->monthLevelScope as $k => $v) {
            $this->monthLevelScope[$k] = [
                "总消费时长" => [0, 0],
                "总消费金额" => [0, 0],
                "点助教次数" => [0, 0],
            ];
        }
    }

    private function initAllLevel()
    {
        foreach ($this->allLevelScope as $k => $v) {
            $this->allLevelScope[$k] = [
                "累计消费时长" => [0, 0],
                "累计充值金额" => [0, 0],
                "累计消费金额" => [0, 0],
            ];
        }
    }
}
